public class UserService {  
  private UserDAO userDAO;
  public userService(userDAO userDAO){
	this.userDAO = userDAO
  }
  public void add(user user){
	userDAO.insert(user);
  }
  public User queryByUsername(String username){
	return userDAO.selectByUsername(username);
  }
}